home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96b.txt / 000024_icon-group-sender _Tue Oct 15 03:16:10 1996.msg < prev    next >
Internet Message Format  |  1997-01-02  |  974b

  1. Received: by cheltenham.cs.arizona.edu; Tue, 15 Oct 1996 08:26:24 MST
  2. Date: 15 Oct 96  11:15:15 BST
  3. From: R J Hare <rjhare@tattoo.ed.ac.uk>
  4. Subject: A question of style
  5. To: icon-group@cs.arizona.edu
  6. Reply-To: rjhare@ed.ac.uk
  7. Organisation:  Edinburgh University Computing Services
  8. Message-Id:  <9610151115.aa17886@uk.ac.ed.tattoo>
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. I have a program in which I have several routines which open by
  12. flashing a dialogue window at the user asking them to set values, etc.
  13. All the dialogue windows have default values set and also have the usual
  14. "OK", "Cancel" buttoms at the bottom. If I elect to change my mind and
  15. cancel the operation, should the way out of the routine be via 'return'
  16. or 'fail'? Note that in no case will I be actually using the returned value
  17. of the routine. This seems to be question of programming style and I can't
  18. decide which is 'best'...
  19.  
  20. Any opinions gratefully received...
  21.  
  22. Roger Hare
  23.